package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.EarMark;
import com.antdesignbackend.backend.entity.entityVo.EarMarkVo;
import com.antdesignbackend.backend.mapper.EarMarkMapper;
import com.antdesignbackend.backend.service.EarMarkService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EarMarkServiceImpl extends ServiceImpl<EarMarkMapper, EarMark> implements EarMarkService {

    @Autowired
    EarMarkMapper earMarkMapper;

    @Override
    public List<EarMarkVo> search(QueryWrapper<EarMarkVo> queryWrapper, Page<EarMarkVo> page) {
        return earMarkMapper.search(queryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<EarMarkVo> queryWrapper) {
        return earMarkMapper.count(queryWrapper);
    }

    @Override
    public List<EarMarkVo> search1(QueryWrapper<EarMarkVo> queryWrapper, Page<EarMarkVo> page) {
        return earMarkMapper.search1(queryWrapper,page);
    }

    @Override
    public Integer count1(QueryWrapper<EarMarkVo> queryWrapper) {
        return earMarkMapper.count1(queryWrapper);
    }

    @Override
    public List<EarMarkVo> search2(QueryWrapper<EarMarkVo> queryWrapper, Page<EarMarkVo> page) {
        return earMarkMapper.search2(queryWrapper,page);
    }

    @Override
    public Integer count2(QueryWrapper<EarMarkVo> queryWrapper) {
        return earMarkMapper.count2(queryWrapper);
    }
}
